package view;

import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
import javafx.scene.layout.Pane;
import lombok.Data;
import utils.User;

import java.io.IOException;
/**
 * @author
 */
@Data
public class AddNewFriend extends AbstractWindow {
    private static AddNewFriend addNewFriend;
    private Pane backPane;
    private  Label userLabel;
    private  ImageView headImage;
    private User chooseUser=null;

    public AddNewFriend(){
        addNewFriend=this;
        try {
            startWindow();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    public static AddNewFriend getAddNewFriend(){
        return addNewFriend;
    }
    @Override
    public void startWindow() throws IOException {
        root = FXMLLoader.load(getClass().getResource("fxml/addNewFriendView.fxml"));
        setTitle("AChat—添加好友");
        setScene(new Scene(root));
        show();
    }

}
